projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99b2da4
)
gtkffmediafile.c: Use g_snprintf()
author
Chun-wei Fan
<fanchunwei@src.gnome.org>
Wed, 30 Dec 2020 10:14:20 +0000
(18:14 +0800)
committer
Matthias Clasen
<mclasen@redhat.com>
Sat, 9 Jan 2021 03:24:42 +0000
(22:24 -0500)
Visual Studio 2013 is just shy of being sufficiently C99-compliant to
build GTK master, as it did not support snprintf() in its CRT
implementation.
Use g_snprintf() to cover for this.
modules/media/gtkffmediafile.c
patch
|
blob
|
history
diff --git
a/modules/media/gtkffmediafile.c
b/modules/media/gtkffmediafile.c
index cf7a03489ffd3fc789b200c01e2e3228b58551ee..9df9e6556f16931de6b89bfa1a6edd8083eda8d0 100644
(file)
--- a/
modules/media/gtkffmediafile.c
+++ b/
modules/media/gtkffmediafile.c
@@
-217,7
+217,7
@@
gtk_ff_media_file_set_ffmpeg_error (GtkFfMediaFile *video,
return;
if (av_strerror (av_errnum, s, sizeof (s) != 0))
- snprintf (s, sizeof (s), _("Unspecified error decoding video"));
+
g_
snprintf (s, sizeof (s), _("Unspecified error decoding video"));
gtk_media_stream_error (GTK_MEDIA_STREAM (video),
G_IO_ERROR,